package
{
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	
	import framework.core.UIWidget;
	
	public class Pook extends Sprite
	{
		public function Pook()
		{
			super();
			
			// 支持 autoOrient
			if(stage)
			{
				onAddToStage();
			}
			else
			{
				this.addEventListener(Event.ADDED_TO_STAGE , onAddToStage);
			}	
		}
		
		private function onAddToStage(evt:Event = null):void
		{
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			
			UIWidget.initialize();
		}
	}
}